package com.hjs.mapper;

import com.hjs.bean.Users;
import com.hjs.bean.Department;
import com.hjs.bean.RightGrade;

import java.util.List;

/**
 * @author violetfreesia
 * @date 2020/06/16
 */
public interface UsersMapper {
    boolean addOneUsers(Users obj);

    boolean addOneRightGrade(RightGrade obj);

    boolean addOneDepartment(Department obj);


    boolean deleteOneUsersById(String id);

    boolean deleteOneRightGradeById(int id);

    boolean deleteOneDepartmentById(int id);

    boolean updateOneUsers(Users obj);

    boolean updateOneRightGrade(RightGrade obj);

    boolean updateOneDepartment(Department obj);

    Users getOneUserById(String id);

    String getToken(String userID, String password);

    RightGrade getOneRightGradeById(int id);

    Department getOneDepartmentById(int id);

    List<Users> getAllUser();

    List<Users> getAllUserByDepartmentId(int id);

}
